getCallingActivity

@Nullable
open fun getCallingActivity(): @Nullable ComponentName(source)

Get the ComponentName of the Activity that invoked this sharing intent. If the target sharing activity was not started for a result, IntentBuilder will read this from extra metadata placed in the intent by ShareBuilder.

Note: This data may have been provided voluntarily by the calling application. As such it should not be trusted for accuracy in the context of security or verification.

Return

ComponentName of the calling Activity or null if unknown

See also